package com.gimi.cloud.bbp.dao.dao.core;

import com.gimi.cloud.bbp.dao.myMapper.MyMapper;
import com.gimi.cloud.bbp.entity.core.MessageTemplate;
import org.apache.ibatis.annotations.*;

import java.util.List;

/**
 * Created by lixj on 2017/12/18.
 */
@Mapper
public interface MessageTemplateDao extends MyMapper<MessageTemplate> {

    /**
     * 根据nid获取短信模板
     * @param typeNid
     * @return
     */
    @Select("select t.* from rd_msg_tpl t where t.tpl_name=#{typeNid}")
    List<MessageTemplate> findByNid(String typeNid);


}
